package com.leiyuee.principle;

/**
 * 依赖倒置
 */
public class DependecyInversion {
    public static void main(String[] args) {

    }
}

interface IReceiver {
    public String getInfo();
}

class Email implements IReceiver {
    @Override
    public String getInfo() {
        return "电子邮件信息";
    }
}

class WeiXin implements IReceiver {
    @Override
    public String getInfo() {
        return "微信信息";
    }
}

class Persion {
    public void receive() {

    }
}